AmeLooksSus / Auto Fill API Key - Baldr's Levelling List [site by oraN] - Torn

// ==UserScript==
// @name        Auto Fill API Key - Baldr's Levelling List [site by oraN] - Torn
// @namespace   https://github.com/AmeLooksSus
// @match       *://*oran.pw/baldrstargets/
// @grant       none
// @version     1.0
// @author      AmeLooksSus
// @description This autofills the API key for you everytime you open https://oran.pw/baldrstargets/ . Just make sure to fill the API Key in the script.
// @license     MIT
// ==/UserScript==

(function () {
  'use strict';

  //Fill your API key here.
  var apiKey = 'YOUR_API_KEY';

  function fillApiKey() {
    var apiKeyInput = document.getElementById('api-key');
    if (apiKeyInput) {
      apiKeyInput.value = apiKey;
    }
  }

  window.addEventListener('load', fillApiKey);
})();